package com.sfx.distributeLockStock.service;

import com.sfx.distributeLockStock.dao.po.StockPO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-11-19
 * Time: 11:30
 */
public interface IStockService {

    List<StockPO> selectAll();

    String decrementStock(Integer goodsId, Integer count);

    String decrementstocksync(Integer goodsId, Integer count);

    String decrementStockLock(Integer goodsId, Integer count);

    String decrementStockUpdate(Integer goodsId, Integer count);

    String decrementStockForUpdate(Integer goodsId, Integer count);

    String decrementStockCAS(Integer goodsId, Integer count);

    String decrementStockRedis(Integer goodsId, Integer count);

    String decrementStockLua(Integer goodsId, Integer count);

    String decrementStockRedissonClient(Integer goodsId, Integer count);
}